﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;


namespace AnyOffice.general.system.attend
{
    public partial class holiday_del : ModulePage 
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int holidayId = (Request.QueryString["holiday_id"] == null) ? 0 : int.Parse(Request.QueryString["holiday_id"].ToString());
            new AttendHolidayDao().Delete(base.Conn, holidayId);
            base.CloseConn();
            Response.Redirect("holiday.aspx");
        }

    }
}
